package ua.kpi_java_training.zabrodskyi.module3;

import static org.junit.Assert.*;

import org.junit.Test;

/**
 * @author Maksym Zabrodskyi
 * @version 24-Jun-2013
 */
public class CreateEnvironmentTest {

	Environment environment;

	@Test
	public void shouldCreateEnvironment() {
		environment = new Environment(4, 5);
		assertNotNull(environment);
	}

	@Test(expected = Exception.class)
	public void shouldExceptionCreateEnvironmentWithNegativeWidth() {
		environment = new Environment(-1, 4);
	}

	@Test(expected = Exception.class)
	public void shouldExceptionCreateEnvironmentWithNegativeHeight() {
		environment = new Environment(4, -1);
	}
	
	@Test(expected = Exception.class)
	public void shouldExceptionCreateEnvironmentWithZeroSize() {
		environment = new Environment(0, 0);
	}

}
